package com.fy56.platform.logistics.common;

/**
 * EXT返回对象
 * @author Administrator
 *
 */
public class InterFaceResult{

	public InterFaceResult(){
		super();
	}

	public InterFaceResult(boolean result,int code,String message,String interFaceName,Object resultObject,String resultId){
		this.result=result;
		this.code=code;
		this.message=message;
		this.interFaceName=interFaceName;
		this.resultObject=resultObject;
		this.resultId=resultId;
	}

	public InterFaceResult(boolean result,int code,String message,String interFaceName,Object resultObject){
		this.result=result;
		this.code=code;
		this.message=message;
		this.interFaceName=interFaceName;
		this.resultObject=resultObject;
	}

	public InterFaceResult(boolean result,int code,String message,String interFaceName){
		this.result=result;
		this.code=code;
		this.message=message;
		this.interFaceName=interFaceName;
	}

	private boolean result;//结果,true成功false失败
	private int code;//结果编码
	private String message;//结果内容
	private String interFaceName;//调用接口名称
	private Object resultObject;//返回结果对象，例如：List，CodOrder
	private String resultId;//返回结果对象ID
	public boolean isResult() {
		return result;
	}
	public int getCode() {
		return code;
	}
	public String getMessage() {
		return message;
	}
	public void setResult(boolean result) {
		this.result = result;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getInterFaceName() {
		return interFaceName;
	}
	public void setInterFaceName(String interFaceName) {
		this.interFaceName = interFaceName;
	}

	public Object getResultObject() {
		return resultObject;
	}

	public void setResultObject(Object resultObject) {
		this.resultObject = resultObject;
	}
	public String getResultId() {
		return resultId;
	}
	public void setResultId(String resultId) {
		this.resultId = resultId;
	}
}

